import {request} from '@/utils/vmeitime-http/index.js'

// 登录凭证校验
export const authCode2Session = (data) => {
	return request({
		url: '/cj/mini/authCode2Session',
		method: 'POST',
		data
	})
}

// 解密用户数据
export const decryptData = (data) => {
	return request({
		url: '/cj/mini/decryptData',
		method: 'POST',
		data
	})
}


// 刷新token
export const refreshToken = (data) => {
	return request({
		url: '/cj/web/refreshToken',
		method: 'POST',
		data
	})
}

// 查询用户已捐赠的金额
export const donateMoney = (data) => {
	return request({
		url: '/cj/web/donateMoney',
		method: 'POST',
		data
	})
}

// 关注、取消
export const concern = (data) => {
	return request({
		url: '/cj/web/concern',
		method: 'POST',
		data
	})
}

// 获取关注列表
export const getConcernList = (data) => {
	return request({
		url: '/cj/web/concernList',
		method: 'POST',
		data
	})
}


export const getUserInfoDetail = (data) => {
	return request({
		url: '/cj/web/getUserInfoDetail',
		method: 'POST',
		data
	})
}

export const pay = (data) => {
	return request({
		url: '/cj/wx/pay',
		method: 'POST',
		data
	})
}